From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:28:20 +0000 (-0700) Subject: manually trigger attestations (#1379) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=838bc9d1351a678c4445db8fa3789117f50bff78;p=gpsbabel.git manually trigger attestations (#1379) * use dispatch parameter to include attestation. * restrict attestation to release flavor --- diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 74894a8d4..14032c6c7 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -8,7 +8,13 @@ on: branches: [ master ] schedule: - cron: '27 4 * * 2' - workflow_dispatch: ~ + workflow_dispatch: + inputs: + attestation: + description: 'Generate attestation for binary artifacts' + required: false + default: false + type: boolean jobs: macos: @@ -99,7 +105,7 @@ jobs: ./tools/ci_script_osx.sh . ${{ matrix.QT_VERSION }} ${{ matrix.GENERATOR }} - name: Generate artifact attestation - if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE + if: ${{ inputs.attestation && matrix.RELEASE }} uses: actions/attest-build-provenance@v1 with: subject-path: 'gui/GPSBabel-*.dmg' diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index bc065153f..16238c40e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -8,7 +8,13 @@ on: branches: [ master ] schedule: - cron: '27 4 * * 2' - workflow_dispatch: ~ + workflow_dispatch: + inputs: + attestation: + description: 'Generate attestation for binary artifacts' + required: false + default: false + type: boolean jobs: ubuntu: @@ -111,7 +117,7 @@ jobs: ./testo -p /snap/bin/gpsbabel - name: Generate artifact attestation - if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) + if: ${{ inputs.attestation }} uses: actions/attest-build-provenance@v1 with: subject-path: ${{ steps.build-snap.outputs.snap }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index bd3282995..dd90c3ede 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -8,7 +8,13 @@ on: branches: [ master ] schedule: - cron: '27 4 * * 2' - workflow_dispatch: ~ + workflow_dispatch: + inputs: + attestation: + description: 'Generate attestation for binary artifacts' + required: false + default: false + type: boolean jobs: @@ -103,7 +109,7 @@ jobs: PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./test_encoding_utf8 2>&1 - name: Generate artifact attestation - if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE + if: ${{ inputs.attestation && matrix.RELEASE }} uses: actions/attest-build-provenance@v1 with: subject-path: 'bld/gui/GPSBabel-*-Setup.exe' @@ -124,6 +130,6 @@ jobs: with: name: Windows_Installer ${{ join(matrix.*) }} path: | - ./bld/gui/GPSBabel-*-Setup.exe - ./bld/gui/GPSBabel-*-Manifest.txt + bld/gui/GPSBabel-*-Setup.exe + bld/gui/GPSBabel-*-Manifest.txt retention-days: 7